export const messageConf = {
    //消息分隔
    MESSAGE_SPLIT: '.',
    //消息头
    MESSAGE_HEAD: {
        COME: 'come',
        OUT: 'out',
        TALK: 'talk',
        PEOPLE: 'people',
    },
    //
    packageMessage(head, body) {
        return `${head}${this.MESSAGE_SPLIT}${body}`;
    },
    //
    unPackageMessage(message) {
        let ary = message.split(this.MESSAGE_SPLIT);
        return { head: ary[0], body: ary[1] };
    },
    talkObject: {
        name: '',
        time: '',
        messageText: '',
    }
}